#ifndef OSSPAGEPLUGIN_H
#define OSSPAGEPLUGIN_H

#include <QObject>
#include <QtPlugin>
#include <QString>
#include <QMetaObject>
#include "interfaces.h"
#include "invokeobject.h"

class OSSPagePlugin : public QObject,public PageInterface
{
    Q_OBJECT
#if QT_VERSION >= 0x050000
    Q_PLUGIN_METADATA(IID "zjzdy.offline.small.search.PageInterface" FILE "PagePluginExample.json")
#endif // QT_VERSION >= 0x050000
    Q_INTERFACES(PageInterface)

public:
    QObject* init(QObject *rootObj) Q_DECL_OVERRIDE;
    void initAfterLoad(QString QmlName) Q_DECL_OVERRIDE;

private:
    QObject *m_rootObj;
    QString m_QmlName;
    InvokeObject *m_invokeObject;
};

#endif // OSSPAGEPLUGIN_H
